#include "funtool.h"
#include "login.h"
#include "mainlog.h"
#include "visa.h"
#include <QtWidgets/QApplication>
#include <QTextStream>
#include <QTextCodec>
#include <QSqlDatabase> 
#include <QtPlugin>  
Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin) 
	//Q_IMPORT_PLUGIN(qsqlite)
	//Q_IMPORT_PLUGIN(qsqlodbc)

#pragma comment(lib, "visa32.lib")	
	int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	qInstallMessageHandler(Log);
	qRegisterMetaType<QVector<int>>("QVector<int>");
	login login;
	if(login.exec()==QDialog::Accepted){
		funtool w;
		w.show();
		return a.exec();
	}else { 
		return 0;
	}
}
